package com.yun.zf.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.zf.common.admin.dto.order.SubOrderDto;
import com.yun.zf.common.app.domain.ZfSubOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 合同订单分项明细 Mapper 接口
 * </p>
 *
 * @author cj
 * @since 2021-04-25
 */
@Mapper
public interface ZfSubOrderMapper extends BaseMapper<ZfSubOrder> {

    @Select("<script>" +
            "SELECT id sub_order_id ,order_id,money_explain,amount,money_type,rate, order_status from zf_sub_order " +
            "WHERE order_id=#{orderId} and city_code=#{cityCode} and province_code=#{prov} " +
            "</script>")
    List<SubOrderDto> getSubOrder(Long orderId,Long prov,Long cityCode);
}
